package com.san.hkhospital.service.impl;

import com.san.hkhospital.entity.DeptSection;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.SectionExample;
import com.san.hkhospital.mapper.SectionMapper;
import com.san.hkhospital.entity.Section;
import com.san.hkhospital.service.SectionService;
/**
 * ClassName:SectionServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class SectionServiceImpl implements SectionService{

    @Resource
    private SectionMapper sectionMapper;

    @Override
    public long countByExample(SectionExample example) {
        return sectionMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SectionExample example) {
        return sectionMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sectionId) {
        return sectionMapper.deleteByPrimaryKey(sectionId);
    }

    @Override
    public int insert(Section record) {
        return sectionMapper.insert(record);
    }

    @Override
    public int insertSelective(Section record) {
        return sectionMapper.insertSelective(record);
    }

    @Override
    public List<Section> selectByExample(SectionExample example) {
        return sectionMapper.selectByExample(example);
    }

    @Override
    public Section selectByPrimaryKey(Integer sectionId) {
        return sectionMapper.selectByPrimaryKey(sectionId);
    }

    @Override
    public int updateByExampleSelective(Section record,SectionExample example) {
        return sectionMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Section record,SectionExample example) {
        return sectionMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Section record) {
        return sectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Section record) {
        return sectionMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Section> sectionList() {
        return sectionMapper.selectByExample(null);
    }


    @Override
    public List<Section> selectSection() {

        return sectionMapper.selectByExample(null);
    }

}
